package com.asl.website.sysJoinMain.service.impl;

import java.util.List;
import com.asl.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.asl.website.sysJoinMain.mapper.SysJoinMainMapper;
import com.asl.website.sysJoinMain.domain.SysJoinMain;
import com.asl.website.sysJoinMain.service.ISysJoinMainService;

/**
 * 加入我们页面配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-21
 */
@Service
public class SysJoinMainServiceImpl implements ISysJoinMainService 
{
    @Autowired
    private SysJoinMainMapper sysJoinMainMapper;

    /**
     * 查询加入我们页面配置
     * 
     * @param joinId 加入我们页面配置主键
     * @return 加入我们页面配置
     */
    @Override
    public SysJoinMain selectSysJoinMainByJoinId(Long joinId)
    {
        return sysJoinMainMapper.selectSysJoinMainByJoinId(joinId);
    }

    /**
     * 查询加入我们页面配置列表
     * 
     * @param sysJoinMain 加入我们页面配置
     * @return 加入我们页面配置
     */
    @Override
    public List<SysJoinMain> selectSysJoinMainList(SysJoinMain sysJoinMain)
    {
        return sysJoinMainMapper.selectSysJoinMainList(sysJoinMain);
    }

    /**
     * 新增加入我们页面配置
     * 
     * @param sysJoinMain 加入我们页面配置
     * @return 结果
     */
    @Override
    public int insertSysJoinMain(SysJoinMain sysJoinMain)
    {
        sysJoinMain.setCreateTime(DateUtils.getNowDate());
        return sysJoinMainMapper.insertSysJoinMain(sysJoinMain);
    }

    /**
     * 修改加入我们页面配置
     * 
     * @param sysJoinMain 加入我们页面配置
     * @return 结果
     */
    @Override
    public int updateSysJoinMain(SysJoinMain sysJoinMain)
    {
        return sysJoinMainMapper.updateSysJoinMain(sysJoinMain);
    }

    /**
     * 批量删除加入我们页面配置
     * 
     * @param joinIds 需要删除的加入我们页面配置主键
     * @return 结果
     */
    @Override
    public int deleteSysJoinMainByJoinIds(Long[] joinIds)
    {
        return sysJoinMainMapper.deleteSysJoinMainByJoinIds(joinIds);
    }

    /**
     * 删除加入我们页面配置信息
     * 
     * @param joinId 加入我们页面配置主键
     * @return 结果
     */
    @Override
    public int deleteSysJoinMainByJoinId(Long joinId)
    {
        return sysJoinMainMapper.deleteSysJoinMainByJoinId(joinId);
    }
}
